﻿package h.ku.utils{	import h.ku.eval.FunctionEval;	import h.ku.eval.ScriptParser;	import h.ku.lang.hkuObject;		public class ScriptRunner	{		public static function runScriptFromString(src:String,env:hkuObject,completeCallback:Function):void		{			var s:ScriptParser = new ScriptParser()			var script:FunctionEval = s.parseScript(src)			trace(script)			ScriptParser.rIndex = 0			//EvaluationUtil.traceNodes(script)			script.addFrame(env)			env.applyCode(script,completeCallback,{})			}			}}